//
//  BuyTicketHeaderView.h
//  didacar
//
//  Created by imac on 15/12/1.
//  Copyright © 2015年 dzmmac. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef void (^BuyTicketHeaderBtnBlock)(NSInteger btnTag);

@interface BuyTicketHeaderView : UIView <UITextFieldDelegate>

// 背景
@property (strong, nonatomic) IBOutlet UIView *bgView;
@property (strong, nonatomic) IBOutlet NSLayoutConstraint *bg_height;

// 出发地
@property (weak, nonatomic) IBOutlet UITextField *startTextField;
@property (nonatomic , assign) BOOL startClear;

@property (weak, nonatomic) IBOutlet UIImageView *startImageView;


// 终点
@property (weak, nonatomic) IBOutlet UITextField *endTextField;
@property (nonatomic , assign) BOOL endClear;
@property (weak, nonatomic) IBOutlet UIImageView *endImageView;

// 地址切换
@property (weak, nonatomic) IBOutlet UIButton *changeBtn;
@property (copy, nonatomic) BuyTicketHeaderBtnBlock BtnBlock;

// 分割线
@property (strong, nonatomic) IBOutlet NSLayoutConstraint *line_height;

// 查询线路
@property (strong, nonatomic) IBOutlet NSLayoutConstraint *roadLine_height;
@property (weak,   nonatomic) IBOutlet UIButton *searchRoadLineBtn;

@property (assign, nonatomic) NSInteger alertStyle;

@property (strong, nonatomic) IBOutlet UITextField *timeTextField;
@property (nonatomic , assign) BOOL timeClear;

@property (strong, nonatomic) IBOutlet UIView *timeBgView;


+(instancetype)getInstance;

-(BOOL)validata;

@end
